<?php

	require_once ($_SERVER['DOCUMENT_ROOT']."/Auditing/data/config.php");
	require_once ($_SERVER['DOCUMENT_ROOT']."/Auditing/data/DBConn.php");
	
	
	function getReportData($strQuery,$fieldCount){
		
		
		$result = mysql_query($strQuery);
		
		 if (!$result) {
		    die	('Invalid query: ' . mysql_error());
		} 
		   
		$arr;
		$temp=0;
    	  while ($row = mysql_fetch_array($result)) {
    	  	
    	  	for($i=0;$i<$fieldCount;$i++){
		//		echo $row[$i];
    	  		$arr[$temp]=$row[$i];
    	  		$temp++;
    	  	}
    	  	
    	  }
    	  return $arr;
	}
	
?>